package com.yuexunit.finance.project.entity.lexicon;

public enum FinanceSegmentEnum {

	UNKNOWN("未知"), AUDIT_DATA("评审资料"), FINANCE_CONTRACT("融资合同"), SUPERVISE_CONTRACT("监管合同"), POLICY_INFO("保单信息");

	private final String paramType;

	private FinanceSegmentEnum(String paramType) {
		this.paramType = paramType;
	}

	public String getValue() {
		return paramType;
	}

	/**
	 * 数字转为枚举类型
	 * @param value 0:未知/1评审资料/2:融资合同/3:监管合同/4:保单信息
	 * @return 参数类型枚举
	 */
	public static FinanceSegmentEnum valueOf(Integer value) {
		if (value == null || values().length <= value.intValue()) {
			return UNKNOWN;
		}
		return values()[value.intValue()];
	}

}
